from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep

import sys

sys.path.append(r'..')

from web_base.base_page_asset import BasePage
class ApplierPage(BasePage):
    url = r'/bsams/front/asset_provider/asset_provider_list.do'
    #供应商查询元素定位
    find_status_loc = (By.XPATH, '//*[@id="fmsearch"]/div[1]/select')
    find_title_loc = (By.ID, 'title')
    find_ok_loc = (By.XPATH, '//*[@id="fmsearch"]/div[3]/input')
    def applier_find(self,status,tltle):
        self.open()
        self.ele_select(self.find_status_loc, status)
        sleep(1)
        self.ele_clear(self.find_title_loc)
        self.input_ele(self.find_title_loc, tltle)
        sleep(1)
        self.ele_click(self.find_ok_loc)
        sleep(3)


